package com.hrt.datasender.dataschedule;

import org.quartz.JobExecutionContext;

import com.btcode.common.MyLog;
import com.btcode.log.ILog;
import com.btcode.schedule.SingleInstanceJob;
import com.hrt.datasender.datadao.service.BdSourceService;

/**
 * 定时清理数据表
 */
public class DataClearScheduler extends SingleInstanceJob {

    @SuppressWarnings("unused")
    private ILog log;

    @Override
    public void initJob(JobExecutionContext arg0) {

        log = MyLog.getInstance().getLogger(getClass());
    }

    @Override
    public void myExecute(JobExecutionContext arg0) {
        // 清理实时数据
        BdSourceService.getInstance().clearRecord();
    }

}
